Distributed non-negative matrix factorization

ABSTRACT

Architecture that scales up the non-negative matrix factorization (NMF) technique to a distributed NMF (denoted DNMF) to handle large matrices, for example, on a web scale that can include millions and billions of data points. To analyze web-scale data, DNMF is applied through parallelism on distributed computer clusters, for example, with thousands of machines. In order to maximize the parallelism and data locality, matrices are partitioned in the short dimension. The probabilistic DNMF can employ not only Gaussian and Poisson NMF techniques, but also exponential NMF for modeling web dyadic data (e.g., dwell time of a user on browsed web pages).

BACKGROUND

The Internet abounds with dyadic data that continues to increase rapidly as new websites come online and existing websites add new content. Generally, dyadic data are the measurements on dyads, which are pairs of two elements coming from two sets. For instance, well-known dyadic data on the Internet is the term-by-document representation of the web corpus, where the measurement on the dyad (term, document) can be the count of how many times the term appears in the document, or some transformed value such as the TF (term frequency)-IDF (inverse document frequency) score.

In general, dyadic data shares the characteristics of high dimensionality, sparsity, non-negativeness, and dynamicity. In the term-by-document matrix, for example, its dimensions are usually very large (e.g., millions to billions), and the measurements are sparse relative to the all possible dyads, i.e., a term does not appear in all documents. Finally, most measurements on web dyadic data are non-negative in that the measurements are based on event observations (e.g., impressions and clicks), which are defined as positive, if observed, and zero, otherwise. Additionally, as new words are invented and new webpages are put into public every day, the term-by-document dyadic data continually grows in terms of both the observed dyads and the dimensionality.

A commonly used tool in extracting the underlying structure is matrix factorization. However, the application of matrix factorization on real-world web dyadic data poses a serious challenge to the scalability of available tools.

SUMMARY

The following presents a simplified summary in order to provide a basic understanding of some novel embodiments described herein. This summary is not an extensive overview, and it is not intended to identify key/critical elements or to delineate the scope thereof. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.

The disclosed architecture scales up the Non-negative Matrix Factorization (NMF) technique to a Distributed NMF (denoted DNMF) to handle large matrices, for example, on a web scale that can include millions and billions of data points. To analyze web-scale data, DNMF is applied through parallelism on distributed computer clusters, for example, with thousands of machines. In order to maximize the parallelism and data locality, matrices are partitioned along the short dimension, so that each partition corresponds to fewer cells. In other words, in an m×n matrix of m rows and n columns, where m<n, partitioning is performed along the columns.

The probabilistic DNMF can employ not only Gaussian and Poisson NMF techniques, but also exponential NMF for modeling web dyadic data (e.g., dwell time of a user on browsed web pages). By partitioning the data and arranging the computations to maximize data locality and parallelism as distributed across multiple machines, factorizing matrices with billions of non-zero cells, for example, can be accomplished within hours, whereas such tasks would be impossible to accomplish for data of such scale.

To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings. These aspects are indicative of the various ways in which the principles disclosed herein can be practiced and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. Other advantages and novel features will become apparent from the following detailed description when considered in conjunction with the drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a computer-implemented data processing system in accordance with the disclosed architecture.

FIG. 2 illustrates a partitioning scheme that partitions a matrix W along the short dimension.

FIG. 3 illustrates an exemplary implementation of the disclosed architecture to a software framework.

FIG. 4 illustrates a computer-implemented data processing method in accordance with the disclosed architecture.

FIG. 5 illustrates further aspects of the method of FIG. 4.

FIG. 6 illustrates further aspects of the method of FIG. 4.

FIG. 7 illustrates an alternative data processing method.

FIG. 8 illustrates further aspects of the method of FIG. 7.

FIG. 9 illustrates a block diagram of a computing system that executes distributed non-negative matrix factorization in accordance with the disclosed architecture.

DETAILED DESCRIPTION

Non-negative matrix factorization (NMF) approximates a real m×n matrix A as a product of two non-negative matrices, W and H, where W has a dimension m×r and H has a dimension of r×n. (Note that regular uppercase letters are used to denote matrices, and boldface lowercase letters are used to denote vectors.) For example, A ε

is an m-by-n non-negative real matrix, an element (i, j) of which is denoted A_(i,j). The set of indices of non-zero values in A is denoted as

={(i,j)|A_(i,j)>0}, and similarly, define

={j|A_(i,j)>0} and

={j|A_(i,j)>0}.

Definition 1

(Non-negative Matrix Factorization). Given A ε

and a positive integer k<=min{m, n}, find W ε

and H ε

such that a divergence function D(A∥Ã) is minimized, where Ã=WH is the reconstructed matrix from the factorization.

A probabilistic interpretation of NMF is to take A_(i,j) as an observation from a distribution the mean of which is parameterized by Ã_(i,j). Following is a brief description of two commonly-used NMFs, variations of which can be employed in the disclosed architecture. Thereafter, the exponential distribution for web lifetime data is described as well.

With respect to the Gaussian NMF using the following relationship,

A_(i,j)˜Gaussian(Ã_(i,j),σ²),

maximizing the likelihood of observing A with respect to W and H under an independently and identically distributed (i.i.d.) assumption using the following,

${L\left( {W,\left. H \middle| A \right.} \right)} = {\prod\limits_{({i,j})}{\frac{1}{\sqrt{2\pi}\sigma}\exp \left\{ {- \frac{\left( {A_{i,j} - {\overset{\sim}{A}}_{i,j}} \right)^{2}}{2\sigma^{2}}} \right\}}}$

is equivalent to minimizing

${{\left( A||\overset{\sim}{A} \right)} = {{\sum\limits_{({i,j})}\left( {A_{i,j} - {\overset{\sim}{A}}_{i,j}} \right)^{2}} = {{A - {WH}}}^{2}}},$

which is the Euclidean distance that leads to the most popular form of NMF, referred to as the Gaussian NMF (GNMF).

Similarly, when the Poisson distribution is used to model count data (e.g., click counts), using the following relationship,

A_(i,j)˜Poisson(Ã_(i,j)),

then maximizing the likelihood of observing A using the following,

$\left. {{L\left( {W,\left. H \middle| A \right.} \right)} = {\prod\limits_{({i,j})}{\exp \left\{ {- \left( \overset{\sim}{A} \right)_{i,j}} \right\} \frac{\left( {\overset{\sim}{A}}_{i,j} \right)^{A_{i,j}}}{A_{i,j}!}}}} \right\}$

is equivalent to minimizing

${{\left( A||\overset{\sim}{A} \right)} = {\sum\limits_{({i,j})}\left( {{\overset{\sim}{A}}_{i,j} - {A_{i,j}{\log \left( {\overset{\sim}{A}}_{i,j} \right)}}} \right)}},$

which is the generalized Kullback-Leibler (KL)-divergence. The resulting NMF is referred to the Poisson NMF (PNMF).

Following is a table of updating formulae for multiplicative algorithms that iteratively find the solution W and H for both GNMF and PNMF (Table 1(a) and Table 1(b), respectively).

Throughout this description, “.*” and “./” (or equivalently “-”) are used to denote element-wise matrix multiplication and division.

TABLE 1 NMFs based on Different Probabilistic Assumptions (a) Gaussian NMF (b) Poisson NMF (c) Exponential NMF (GNMF) (PNMF) (ENMF) A_(i,j)~Gaussian(Ã_(i,j), σ²) A_(i,j)~Poisson(Ã_(i,j)) A_(i,j)~Exponential(Ã_(i,j)) $\left. H\leftarrow{{H \cdot}*\frac{W^{T}A}{W^{T}{WH}}(1)} \right.$ $\left. H\leftarrow{{H \cdot}*\frac{W^{T}\frac{A}{WH}}{W^{T}E^{1}}(3)} \right.$ $\left. H\leftarrow{{H \cdot}*\frac{W^{T}\left\lbrack {{A \cdot \text{/}}({WH})^{2}} \right\rbrack}{W^{T}\left\lbrack {{1 \cdot \text{/}}{WH}} \right\rbrack}(5)} \right.$ $\left. W\leftarrow{{W \cdot}*\frac{{AH}^{T}}{{WHH}^{T}}(2)} \right.$ $\left. W\leftarrow{{W \cdot}*\frac{\frac{A}{WH}H^{T}}{{EH}^{T}}(4)} \right.$ $\left. W\leftarrow{{W \cdot}*\frac{\left\lbrack {{A \cdot \text{/}}({WH})^{2}} \right\rbrack H^{T}}{\left\lbrack {{1 \cdot \text{/}}{WH}} \right\rbrack H^{T}}(6)} \right.$ Note: E ∈ ℝ_(+m × n), E_(i, j) = 1

In addition to count and Gaussian data, another kind of measurement on dyads is the lifetime data. An example of lifetime data in the web context is the dwell time of a user on a webpage (i.e., the time until the user navigates away from the page).

Lifetime can be modeled by the Weibull distribution,

${f\left( {\left. x \middle| \gamma \right.,\beta} \right)} = {\frac{\gamma}{\beta}x^{\gamma - 1}{^{{- x^{\gamma}}/\beta}.}}$

Since the mean

${E(X)} = {\beta^{1/\gamma}{\Gamma \left( {1 + \frac{1}{\gamma}} \right)}}$

of the Weibull distribution involves two parameters, and hence, cannot be parameterized by a single value Ã_(i,j), the Exponential distribution is considered instead, which is a special case of the Weibull distribution with γ=1 and E(X)=β.

When A_(i,j) is assumed to come from an Exponential distribution with β=Ã_(i,j), using the following,

A_(i,j)˜Exponential(Ã_(i,j)),

maximizing the likelihood of observing A with respect to W and H

${L\left( {W,\left. H \middle| A \right.} \right)} = {\prod\limits_{({i,j})}{\frac{1}{{\overset{\sim}{A}}_{i,j}}\exp \left\{ {- \frac{A_{i,j}}{{\overset{\sim}{A}}_{i,j}}} \right\}}}$

is equivalent to minimizing

${\left( A||\overset{\sim}{A} \right)} = {\sum\limits_{({i,j})}{\left( {{\log \left( {\overset{\sim}{A}}_{i,j} \right)} + \frac{A_{i,j}}{{\overset{\sim}{A}}_{i,j}}} \right).}}$

A gradient-descent algorithm is used to find the solution. Matrix calculus reveals that the gradient of

(A∥Ã) with respect to H is

${\frac{\partial }{\partial H} = {W^{T}\left\lbrack {\frac{1}{WH} - \frac{A}{({WH}) \cdot^{2}}} \right\rbrack}},$

which leads to the following update formula,

$\left. H\leftarrow{H + {{\mu.}*{W^{T}\left\lbrack {\frac{A}{({WH})^{2}} - \frac{1}{WH}} \right\rbrack}}} \right.$

and μ>0 is the step-size. When μ takes

$\frac{H}{W^{T}\left\lbrack {1./{WH}} \right\rbrack},$

the multiplicative updating rule for the Exponential NMF (ENMF) is obtained as

$\left. H\leftarrow{{H.}*\frac{W^{T}\left\lbrack {{A.}/({WH})^{2}} \right\rbrack}{W^{T}\left\lbrack {1./{WH}} \right\rbrack}} \right.$

which, together with the formula for W, is summarized in Table 1(c) above for comparison with the GNMF and the PNMF. The proof of convergence for PNMF using Equations 5 and 6 of the table is similar to the proof for GNMF, and thus, is not shown, for brevity.

The disclosed architecture scales up the NMF technique to a distributed NMF (denoted DNMF) to handle large matrices, for example, on a web scale that can include millions and billions of data points. To analyze web-scale data, DNMF is applied through parallelism on distributed computer clusters, for example, with thousands of machines. In order to maximize the parallelism and data locality, matrices are partitioned along the short dimension, rather than the long dimension as done conventionally. The probabilistic DNMF can employ not only Gaussian and Poisson NMF techniques, but also Exponential NMF for modeling web dyadic data (e.g., dwell time of a user on browsed web pages).

Reference is now made to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding thereof. It may be evident, however, that the novel embodiments can be practiced without these specific details. In other instances, well known structures and devices are shown in block diagram form in order to facilitate a description thereof. The intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the claimed subject matter.

FIG. 1 illustrates a computer-implemented data processing system 100 in accordance with the disclosed architecture. The system 100 includes a matrix component 102 that represents a sparse (non-negative) matrix 104 of dyadic data as tuples 106 distributed across a cluster of machines 108. A partitioning component 110 partitions a non-negative matrix 112 along the short dimension into key-value pairs 114. Note that sparse matrix 104 is partitioned differently than W and H, and thus, can employ a different partitioning component than partitioning component 110. However, it is to be understood that the partitioning component 110 can include such capabilities as well. The non-negative matrix 112 is factored from the sparse matrix 104 according to probabilistic non-negative matrix factorization (NMF). A distribution component 116 distributes the key-value pairs 114 across the cluster of machines 108. A computation component 118 can be employed to compute a reconstructed matrix 120 based on a global summation of partial sums of the distributed key-value pairs 114 and distributed tuples 106.

The probabilistic NMF can be a Gaussian NMF employed to model Gaussian data. The probabilistic NMF can be a Poisson NMF employed to model Poisson data (e.g., count data). The probabilistic NMF can be an exponential NMF employed to model exponential data (e.g., lifetime dyadic data). The computation component 118 facilitates element-wise division and element-wise multiplication as distributed across the multiple machines 108. The dyadic data can be web search data that includes term-and-clicked-link tuples, and the NMF is applied to smooth a matrix of the tuples to elevate search relevance.

FIG. 2 illustrates a partitioning scheme 200 that partitions a matrix W along the short dimension 202. The scheme 200 supports distributed NMF as described herein by facilitating the parallel computation of both W^(T)A and W^(T)W, as well as data locality for local processing, thereby reducing communications costs that would otherwise be incurred when partitioning the matrix W, which is a non-negative matrix, along the long dimension 204. Although not illustrated, the scheme 200 applies equally well to partitioning the non-negative matrix H along the short dimension.

FIG. 3 illustrates an exemplary implementation of the disclosed architecture to a software framework 300. Here, the software framework is called MapReduce. However, this is not to be construed as limiting in any way, in that the architecture can also be applied to other frameworks such as MPI (message passing interface) clusters, for example.

MapReduce is a programming model and associated infrastructure that provides automatic and reliable parallelization once a computation task is expressed as a series of Map and Reduce operations. Specifically, the Map function reads a <key, value> pair, and emits one or many intermediate <key, value> pairs. The MapReduce infrastructure then groups all values with the same intermediate key, and constructs a <key, ValueList> pair with ValueList containing all values associated with the same key. The Reduce function takes a <key, ValueList> pair and emits one or many new <key, value> pairs. As both Map and Reduce operate on <key, value> pairs, a series of mappers (for multiplications) and reducers (for summations of data received from the mappers) are usually streamlined for complicated tasks. With the MapReduce infrastructure, a user can fully focus on the logic of mappers and reducers, and let the infrastructure deal with complex issues about distributed computing.

Despite the updating formulae illustrated in Table 1, it is still a nontrivial task to distribute NMF on MapReduce clusters. The giant matrices A, W, and H need to be carefully partitioned so that each partition can be efficiently shuffled across machines, when needed. Additionally, the computation needs to be arranged properly such that most computation can be carried out locally and in parallel.

Following is a description of how to partition the matrices, and then how to scale up GNMF on MapReduce. The description then moves to adapting the scaling-up scheme for GNMF to PNMF and ENMF. The updating formulae are symmetric between W and H; thus, the description is limited to the update of H.

With respect to matrix partition schemes, since matrix A is sparse, the matrix can be represented as (i,j,A_(i,j)) tuples that are spread across machines. For dense matrices W and H, how to partition such matrices significantly affects the final scalability.

Existing work on parallel NMF chooses to partition W and H along the long dimension. This may be a sensible choice that conforms to the conventional thinking of matrix multiplication in the context of computing W^(T)A and W^(T)W (Equation (1) of Table 1). By partitioning W and H along the long dimension and assuming A is in the shared memory, different threads can compute corresponding rows of W^(T)A on different cores of a multi-core machine. Similarly, as all columns of W are held in the shared memory, W^(T)W can be also calculated in parallel.

However, partitioning matrices W and H along the long dimension does not prevail for distributed NMF. First, each column of W can be simply too large to be manipulated in memory, and also too big to be passed around across machines. Second, partitioning along the long dimension unnecessarily limits the maximum parallelism to the factorization dimensionality k as there are only k columns in W. Finally, when partitioning W along the long dimension, W^(T)A and W^(T)W can no longer be computed in parallel because it can no longer be assumed that A and all columns of W can be accessible with low overhead.

Accordingly, to address these limitations, the disclosed architecture partitions the matrices W and H along the short dimension as illustrated in FIG. 2. This way of partitioning not only enables the parallel computation of both W^(T)A and W^(T)W but also maximizes the data locality to minimize the communication cost. More specifically, this partitioning technique renders the following view of W and H

$\begin{matrix} {{W = {{\begin{pmatrix} W_{1} \\ W_{2} \\ \vdots \\ W_{m} \end{pmatrix}\mspace{14mu} {and}\mspace{14mu} H} = \begin{pmatrix} h_{1} & h_{2} & \ldots & h_{n} \end{pmatrix}}},} & (9) \end{matrix}$

where w_(i) (1≦i≦m) and h_(j) (1≦j≦n) are k-dimensional row and column vectors, respectively. Consequently, W and H are stored as sets of <i,w_(i)> and <j, h_(j)> key-value pairs.

The updating formula for H (Equation (1) in Table 1) is composed of three components: X=W^(T)A, Y=W^(T)WH, and H←H.* X./Y, where X and Y are auxiliary matrices for notation convenience (X is a first auxiliary matrix of the auxiliary matrices X and Y, and Y is a second auxiliary matrix of the auxiliary matrices X and Y). The three components are described herein below. FIG. 3 illustrates a flow diagram of updating H on MapReduce clusters.

With respect to computing X=W^(T)A, let x_(j) denote the jth column of X, then,

$x_{j} = {{\sum\limits_{i = 1}^{m}{A_{i,j}w_{i}^{T}}} = {A_{i,j}{w_{i}^{T}.}}}$

which indicates that x_(j) is a linear combination of {w_(i) ^(T)} over the non-zero cells on the jth column of matrix A, and which can be implemented by the following two sets of MapReduce operations.

-   -   Map-I: Map <i,j,A_(i,j)> and <i w_(i)> on i such that tuples         with the same i are shuffled to the same machine in the form of         <i, {w_(i),(j,A_(i,j)) ∀j ε         }>.     -   Reduce-I: Take <i,{w_(i),(j,A_(i,j)) ∀j ε         }> and emit <j,A_(i,j) w_(i) ^(T), > for each j ε         .     -   Map-II: Map <j,A_(i,j) w_(i) ^(T)> on j such that tuples with         the same j are shuffled to the same machine in the form of         <j,{A_(i,j)w_(i) ^(T)) ∀i ε         }>.     -   Reduce-II: Take <j,{A_(i,j)w_(i) ^(T)) {i ε         }>, and emit <j,x_(j)>, where x_(j)=         A_(i,j)w_(i) ^(T).

The output from Reduce-II is the matrix X. The technique of using two MapReduce operations can be used to multiply any two giant matrices when one is sparse and the other narrow. Multiplying two giant and dense matrices is uncommon in practice because the result will take too much storage to be practical.

With respect to computing Y=W^(T) WH, it is desired to compute Y by first computing C=W^(T)W and then Y=CH to maximize the parallelism while requiring fewer multiplications than Y=W^(T) (WH). It is unrealistic to compute WH because the result is a giant dense matrix that will easily overrun the storage.

With the partition of W along the short dimension, the calculation of W^(T)W can be fully parallelized since,

${W^{T}W} = {\sum\limits_{i = 1}^{m}{w_{i}^{T}{w_{i}.}}}$

This means that each machine can first compute w_(i) ^(T) w_(i) (a small k×k matrix) for all the w_(i)'s the machine hosts, and then send the w_(i)'s for a global summation, as implemented by

-   -   Map-III: Map <i,w_(i)> to <0,w_(i) ^(T)w_(i)> where 0 is a dummy         key value for data shuffling.     -   Reduce-III: Take <0,{w_(i) ^(T)w_(i)}_(i=1) ^(m)>, and emit Σ₌₁         ^(m)w_(i) ^(T)w_(i), which is the W^(T)W.

As summation is both associative and commutative, a combiner can be used to compute the partial sum of w_(i) ^(T)w_(i) on each machine and then pass the partial sum to the reducer to reduce network traffic.

Now that C=W^(T)W is calculated, computing Y=CH becomes as trivial as running through the following mapper with no data shuffled, except copying the k×k matrix C to all the machines that host h_(j)'s (as indicated by the dotted line in FIG. 2).

-   -   Map-IV: Map <j,h_(j)> to <j,y_(i)=Ch_(j)>.

With respect to updating H=H.* X./Y, updating H←H.* X./Y is parallelized through the following MapReduce operation.

-   -   Map-V: Map <j,h_(j)>, <j, x_(j)> and <j, y_(j)> on j such that         tuples with the same j are shuffled to the same machine in the         form of <j,{h_(j), x_(j), y_(j)}>.     -   Reduce-V: Take <j, {h_(j),x_(j),y_(j)}> and emit <j,h_(j)         ^(new)>, where h_(j) ^(new)=h_(j).* x_(j)./y_(j).

This completes the update of H. Updating W can be carried out in the same fashion. The following describes how the above scaling-up scheme carries over to PNMF and ENMF.

Since the updating formulae of PNMF and ENMF share the same structure as GNMF, the challenges in distributed PNMF and ENMF still lie on how to compute the numerator X and the denominator Y. Once X and Y are computed, the same Map-V and Reduce-V can be re-used for the final update.

With respect to distributed PNMF, computing the numerator X=W^(T)[A./(WH)] for PNMF is similar to GNMF, since once Â=A./[WH] is computed, X=W^(T)Â is known. Moreover, since Â_(i,j)=0, if A_(i,j)=0, Â can be computed through two sets of MapReduce operations: the first operation gets <i, j,A_(i,j),h_(j)> and the second operation obtains <i,j,A_(i,j)/(w_(i)h_(j))>.

In computing W^(T)Â, two more MapReduce operations are no longer needed, since A was joined with Win the last step. Rather, <j, [A_(i,j)/(w_(i)h_(j))]w_(i)> can be output from the last step and the output streamlined directly to Map-II. Not only does this save some time, but it also reduces the network traffic.

The denominator Y=WE appears formidable because two giant dense matrices are multiplied. However, since all elements of E are one, all the columns of Y are the same: y_(j)=Σ_(i=1) ^(m)w_(i) ^(T), ∀j ε [1, m]. Thus, only one column is calculated in parallel, and the column can be copied to all the machines that host h_(j)'s for the update of H. The distributed PNMF can be implemented on MapReduce.

With respect to distributed ENMF, the computation of the numerator for ENMF is essentially the same as that for PNMF, and the same optimization to save one set of MapReduce operations applies as well. However, the denominator presents a challenge because it explicitly asks for the giant dense matrix 1./(WH). The denominator can be approximated by only keeping the cells corresponding to non-zero values of A.

Included herein is a set of flow charts representative of exemplary methodologies for performing novel aspects of the disclosed architecture. While, for purposes of simplicity of explanation, the one or more methodologies shown herein, for example, in the form of a flow chart or flow diagram, are shown and described as a series of acts, it is to be understood and appreciated that the methodologies are not limited by the order of acts, as some acts may, in accordance therewith, occur in a different order and/or concurrently with other acts from that shown and described herein. For example, those skilled in the art will understand and appreciate that a methodology could alternatively be represented as a series of interrelated states or events, such as in a state diagram. Moreover, not all acts illustrated in a methodology may be required for a novel implementation.

FIG. 4 illustrates a computer-implemented data processing method in accordance with the disclosed architecture. At 400, a real matrix of dyadic data is partitioned into a first non-negative matrix and a second non-negative matrix. At 402, the first non-negative matrix is partitioned along a short dimension to provide first non-negative values. At 404, the first non-negative values are distributed on multiple machines. At 406, NMF is applied to the first non-negative values in memory of the multiple machines. At 408, the second non-negative matrix and associated second non-negative values are the partitioned, distributed, and the NMF applied (as for the first non-negative matrix). At 410, a reconstructed real matrix is output that includes results representative of probabilistic NMF as applied to the dyadic data.

FIG. 5 illustrates further aspects of the method of FIG. 4. At 500, a probabilistic NMF is applied to the non-negative values of the first non-negative matrix. At 502, the first non-negative matrix is decomposed into auxiliary matrices for distributed and parallel processing by the machines. At 504, a first auxiliary matrix (X) of the auxiliary matrices is distributed as a first set of tuples across a set of the machines. At 506, NMF is applied to the distributed first set of tuples to output a numerator value. At 508, a second auxiliary matrix (Y) of the auxiliary matrices is distributed as a second set of tuples across a set of the machines. At 510, NMF is applied to the distributed second tuples to output a denominator value.

FIG. 6 illustrates further aspects of the method of FIG. 4. At 600, a Gaussian NMF, a Poisson NMF, or an Exponential NMF is applied to the non-negative values in the memory of the machines. At 602, element-wise division is performed on the distributed first non-negative values and second non-negative values locally on the machines. At 604, element-wise multiplication is performed on the distributed first non-negative values and second non-negative values locally on the machines.

FIG. 7 illustrates an alternative data processing method. At 700, a real matrix of dyadic data is partitioned into a first non-negative matrix and a second non-negative matrix. At 702, real matrix tuples of the real matrix are distributed across machines of a cluster. At 704, the first non-negative matrix is partitioned along the short dimension to provide the first auxiliary non-negative values. At 706, the first auxiliary non-negative values are distributed across the machines. At 708, probabilistic NMF is applied to the distributed first auxiliary non-negative values on the machines. At 710, the probabilistic NMF is computed locally for each distributed real matrix tuple and each distributed first auxiliary non-negative value and in parallel across the machines. At 712, results of the local probabilistic NMF computation on each of the machines are sent for global summation.

FIG. 8 illustrates further aspects of the method of FIG. 7. At 800, the first auxiliary non-negative values are stored on corresponding machines as key-value pairs that represent the first non-negative matrix. At 802, partitioning, distributing, applying, computing, and sending are performed on the second non-negative matrix and associated second auxiliary non-negative values. At 804, a Gaussian NMF, a Poisson NMF, or an Exponential NMF is applied as the probabilistic NMF to the first auxiliary non-negative values and the second auxiliary non-negative values of the machines. At 806, element-wise division is performed on the distributed first non-negative values and second non-negative values locally on the machines. At 808, element-wise multiplication is performed on the distributed first non-negative values and second non-negative values locally on the machines. At 810, a reconstructed real matrix is output that includes results representative of the probabilistic NMF as applied to the first non-negative matrix and the second non-negative matrix.

The versatility of the disclosed DNMF architecture can be applied to dyadic data for web search as well, by factorizing the (term, clicked URL) dyadic data, for example. Search terms and associated clicked URLs are a commonly used data source for learning-to-rank systems: this tuple can be fed into a learning-to-rank system as features to help train a better ranker.

As used in this application, the terms “component” and “system” are intended to refer to a computer-related entity, either hardware, a combination of software and tangible hardware, software, or software in execution. For example, a component can be, but is not limited to, tangible components such as a processor, chip memory, mass storage devices (e.g., optical drives, solid state drives, and/or magnetic storage media drives), and computers, and software components such as a process running on a processor, an object, an executable, module, a thread of execution, and/or a program. By way of illustration, both an application running on a server and the server can be a component. One or more components can reside within a process and/or thread of execution, and a component can be localized on one computer and/or distributed between two or more computers. The word “exemplary” may be used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects or designs.

Referring now to FIG. 9, there is illustrated a block diagram of a computing system 900 that executes distributed non-negative matrix factorization in accordance with the disclosed architecture. In order to provide additional context for various aspects thereof, FIG. 9 and the following description are intended to provide a brief, general description of the suitable computing system 900 in which the various aspects can be implemented. While the description above is in the general context of computer-executable instructions that can run on one or more computers, those skilled in the art will recognize that a novel embodiment also can be implemented in combination with other program modules and/or as a combination of hardware and software.

The computing system 900 for implementing various aspects includes the computer 902 having processing unit(s) 904, a computer-readable storage such as a system memory 906, and a system bus 908. The processing unit(s) 904 can be any of various commercially available processors such as single-processor, multi-processor, single-core units and multi-core units. Moreover, those skilled in the art will appreciate that the novel methods can be practiced with other computer system configurations, including minicomputers, mainframe computers, as well as personal computers (e.g., desktop, laptop, etc.), hand-held computing devices, microprocessor-based or programmable consumer electronics, and the like, each of which can be operatively coupled to one or more associated devices.

The system memory 906 can include computer-readable storage (physical storage media) such as a volatile (VOL) memory 910 (e.g., random access memory (RAM)) and non-volatile memory (NON-VOL) 912 (e.g., ROM, EPROM, EEPROM, etc.). A basic input/output system (BIOS) can be stored in the non-volatile memory 912, and includes the basic routines that facilitate the communication of data and signals between components within the computer 902, such as during startup. The volatile memory 910 can also include a high-speed RAM such as static RAM for caching data.

The system bus 908 provides an interface for system components including, but not limited to, the system memory 906 to the processing unit(s) 904. The system bus 908 can be any of several types of bus structure that can further interconnect to a memory bus (with or without a memory controller), and a peripheral bus (e.g., PCI, PCIe, AGP, LPC, etc.), using any of a variety of commercially available bus architectures.

The computer 902 further includes machine readable storage subsystem(s) 914 and storage interface(s) 916 for interfacing the storage subsystem(s) 914 to the system bus 908 and other desired computer components. The storage subsystem(s) 914 (physical storage media) can include one or more of a hard disk drive (HDD), a magnetic floppy disk drive (FDD), and/or optical disk storage drive (e.g., a CD-ROM drive DVD drive), for example. The storage interface(s) 916 can include interface technologies such as EIDE, ATA, SATA, and IEEE 1394, for example.

One or more programs and data can be stored in the memory subsystem 906, a machine readable and removable memory subsystem 918 (e.g., flash drive form factor technology), and/or the storage subsystem(s) 914 (e.g., optical, magnetic, solid state), including an operating system 920, one or more application programs 922, other program modules 924, and program data 926.

The one or more application programs 922, other program modules 924, and program data 926 can include the entities and components of the system 100 of FIG. 1, the entities and components of the scheme 200 of FIG. 2, the entities and flow of the framework 300 of FIG. 3, and the methods represented by the flowcharts of FIGS. 4-8, for example.

Generally, programs include routines, methods, data structures, other software components, etc., that perform particular tasks or implement particular abstract data types. All or portions of the operating system 920, applications 922, modules 924, and/or data 926 can also be cached in memory such as the volatile memory 910, for example. It is to be appreciated that the disclosed architecture can be implemented with various commercially available operating systems or combinations of operating systems (e.g., as virtual machines).

The storage subsystem(s) 914 and memory subsystems (906 and 918) serve as computer readable media for volatile and non-volatile storage of data, data structures, computer-executable instructions, and so forth. The instructions can exist on non-transitory media. Such instructions, when executed by a computer or other machine, can cause the computer or other machine to perform one or more acts of a method. The instructions to perform the acts can be stored on one medium, or could be stored across multiple media, so that the instructions appear collectively on the one or more computer-readable storage media, regardless of whether all of the instructions are on the same media.

Computer readable media can be any available media that can be accessed by the computer 902 and includes volatile and non-volatile internal and/or external media that is removable or non-removable. For the computer 902, the media accommodate the storage of data in any suitable digital format. It should be appreciated by those skilled in the art that other types of computer readable media can be employed such as zip drives, magnetic tape, flash memory cards, flash drives, cartridges, and the like, for storing computer executable instructions for performing the novel methods of the disclosed architecture.

A user can interact with the computer 902, programs, and data using external user input devices 928 such as a keyboard and a mouse. Other external user input devices 928 can include a microphone, an IR (infrared) remote control, a joystick, a game pad, camera recognition systems, a stylus pen, touch screen, gesture systems (e.g., eye movement, head movement, etc.), and/or the like. The user can interact with the computer 902, programs, and data using onboard user input devices 930 such a touchpad, microphone, keyboard, etc., where the computer 902 is a portable computer, for example. These and other input devices are connected to the processing unit(s) 904 through input/output (I/O) device interface(s) 932 via the system bus 908, but can be connected by other interfaces such as a parallel port, IEEE 1394 serial port, a game port, a USB port, an IR interface, etc. The I/O device interface(s) 932 also facilitate the use of output peripherals 934 such as printers, audio devices, camera devices, and so on, such as a sound card and/or onboard audio processing capability.

One or more graphics interface(s) 936 (also commonly referred to as a graphics processing unit (GPU)) provide graphics and video signals between the computer 902 and external display(s) 938 (e.g., LCD, plasma) and/or onboard displays 940 (e.g., for portable computer). The graphics interface(s) 936 can also be manufactured as part of the computer system board.

The computer 902 can operate in a networked environment (e.g., IP-based) using logical connections via a wired/wireless communications subsystem 942 to one or more networks and/or other computers. The other computers can include workstations, servers, routers, personal computers, microprocessor-based entertainment appliances, peer devices or other common network nodes, and typically include many or all of the elements described relative to the computer 902. The logical connections can include wired/wireless connectivity to a local area network (LAN), a wide area network (WAN), hotspot, and so on. LAN and WAN networking environments are commonplace in offices and companies and facilitate enterprise-wide computer networks, such as intranets, all of which may connect to a global communications network such as the Internet.

When used in a networking environment the computer 902 connects to the network via a wired/wireless communication subsystem 942 (e.g., a network interface adapter, onboard transceiver subsystem, etc.) to communicate with wired/wireless networks, wired/wireless printers, wired/wireless input devices 944, and so on. The computer 902 can include a modem or other means for establishing communications over the network. In a networked environment, programs and data relative to the computer 902 can be stored in the remote memory/storage device, as is associated with a distributed system. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers can be used.

The computer 902 is operable to communicate with wired/wireless devices or entities using the radio technologies such as the IEEE 802.xx family of standards, such as wireless devices operatively disposed in wireless communication (e.g., IEEE 802.11 over-the-air modulation techniques) with, for example, a printer, scanner, desktop and/or portable computer, personal digital assistant (PDA), communications satellite, any piece of equipment or location associated with a wirelessly detectable tag (e.g., a kiosk, news stand, restroom), and telephone. This includes at least Wi-Fi (or Wireless Fidelity) for hotspots, WiMax, and Bluetooth™ wireless technologies. Thus, the communications can be a predefined structure as with a conventional network or simply an ad hoc communication between at least two devices. Wi-Fi networks use radio technologies called IEEE 802.11x (a, b, g, etc.) to provide secure, reliable, fast wireless connectivity. A Wi-Fi network can be used to connect computers to each other, to the Internet, and to wire networks (which use IEEE 802.3-related media and functions).

The illustrated and described aspects can be practiced in distributed computing environments where certain tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in local and/or remote storage and/or memory system.

What has been described above includes examples of the disclosed architecture. It is, of course, not possible to describe every conceivable combination of components and/or methodologies, but one of ordinary skill in the art may recognize that many further combinations and permutations are possible. Accordingly, the novel architecture is intended to embrace all such alterations, modifications and variations that fall within the spirit and scope of the appended claims. Furthermore, to the extent that the term “includes” is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term “comprising” as “comprising” is interpreted when employed as a transitional word in a claim. 

1. A computer-implemented data processing system having non-transitory computer readable media that stores executable instructions executed by a processor, comprising: a matrix component that represents a sparse matrix of dyadic data as tuples distributed across a cluster of machines; a partitioning component that partitions a non-negative matrix along a short dimension into key-value pairs, the non-negative matrix factored from the sparse matrix according to a probabilistic non-negative matrix factorization (NMF); and a distribution component that distributes the key-value pairs across the cluster of machines.
 2. The system of claim 1, wherein the probabilistic NMF is a Gaussian NMF to model Gaussian data.
 3. The system of claim 1, wherein the probabilistic NMF is a Poisson NMF to model Poisson data.
 4. The system of claim 1, wherein the probabilistic NMF is an exponential NMF to model exponential data.
 5. The system of claim 1, wherein the computation component facilitates element-wise division and element-wise multiplication as distributed across the multiple machines.
 6. The system of claim 1, wherein the dyadic data is web search data that includes term-and-clicked-link tuples, the NMF applied to smooth a matrix of the tuples to elevate search relevance.
 7. A computer-implemented data processing method executable via a processor and memory, comprising: partitioning a real matrix of dyadic data into a first non-negative matrix and a second non-negative matrix; partitioning the first non-negative matrix along a short dimension to provide first non-negative values; distributing the first non-negative values on multiple machines; applying NMF to the first non-negative values in memory of the multiple machines; and performing the partitioning, the distributing, and the applying on the second non-negative matrix and associated second non-negative values.
 8. The method of claim 7, further comprising applying a probabilistic NMF to the non-negative values of the first non-negative matrix.
 9. The method of claim 7, further comprising decomposing the first non-negative matrix into auxiliary matrices for distributed and parallel processing by the machines.
 10. The method of claim 9, further comprising: distributing a first auxiliary matrix of the auxiliary matrices as a first set of tuples across a set of the machines; and applying NMF to the distributed first set of tuples to output a numerator value.
 11. The method of claim 10, further comprising: distributing a second auxiliary matrix of the auxiliary matrices as a second set of tuples across a set of the machines; and applying NMF to the distributed second set of tuples to output a denominator value.
 12. The method of claim 7, further comprising applying a Gaussian NMF, a Poisson NMF, or an Exponential NMF to the non-negative values in the memory of the machines.
 13. The method of claim 7, further comprising performing element-wise division on the distributed first non-negative values and second non-negative values locally on the machines.
 14. The method of claim 7, further comprising performing element-wise multiplication on the distributed first non-negative values and second non-negative values locally on the machines.
 15. A computer-implemented data processing method executable via a processor and memory, comprising: partitioning a real matrix of dyadic data into a first non-negative matrix and a second non-negative matrix; distributing real matrix tuples of the real matrix across machines of a cluster; partitioning the first non-negative matrix along a short dimension to provide first auxiliary non-negative values; distributing the first auxiliary non-negative values across the machines; applying probabilistic NMF to the distributed first auxiliary non-negative values on the machines; computing the probabilistic NMF locally for each distributed real matrix tuple and each distributed first auxiliary non-negative value and in parallel across the machines; and sending results of the local probabilistic NMF computation on each of the machines for global summation.
 16. The method of claim 15, further comprising storing the first auxiliary non-negative values on corresponding machines as key-value pairs that represent the first non-negative matrix.
 17. The method of claim 15, further comprising performing the partitioning, the distributing, the applying, the computing, and the sending on the second non-negative matrix and associated second auxiliary non-negative values.
 18. The method of claim 17, further comprising applying a Gaussian NMF, a Poisson NMF, or an Exponential NMF as the probabilistic NMF to the first auxiliary non-negative values and the second auxiliary non-negative values of the machines.
 19. The method of claim 15, further comprising: performing element-wise division on the distributed first non-negative values and second non-negative values locally on the machines; and performing element-wise multiplication on the distributed first non-negative values and second non-negative values locally on the machines.
 20. The method of claim 15, further comprising outputting a reconstructed real matrix that includes results representative of the probabilistic NMF as applied to the first non-negative matrix and the second non-negative matrix. 